/*
 * @Author: 尔尔
 * @Date: 2024-02-22 14:45:26
 * @LastEditors: 尔尔
 * @LastEditTime: 2024-02-29 17:07:05
 * @FilePath: \ERP\src\api\fileVedio\fileVedios.js
 * @filePurpose:
 */
import request from '@/utils/request'

// 新增
export function addVedio(data) {
  return request({
    url: '/TOperationVideo/video',
    method: 'post',
    data
  })
}

// 删除
export function deleteVedio(id) {
  return request({
    url: '/TOperationVideo/video/'+id,
    method: 'delete'
  })
}


export function VedioList(params) {
  return request({
    url: '/TOperationVideo/video/list',
    method: 'get',
    params
  })
}


export function editVedio(data) {
  return request({
    url: '/TOperationVideo/video',
    method: 'put',
    data
  })
}


export function getVedio(id) {
  return request({
    url: '/TOperationVideo/video/'+id,
    method: 'get'
  })
}

// 菜单列表

export function menulist() {
  return request({
    url: '/TOperationVideo/video/menulist',
    method: 'get'
  })
}



export function bind(data) {
  return request({
    url: '/TOperationVideo/video/bind',
    method: 'put',
    data
  })
}


export function getbind(id) {
  return request({
    url: '/OperationVideoMenu/OperationVideoMenu/getbind/'+id,
    method: 'get',
  })
}

export function OperationVideoMenuList(params) {
  return request({
    url: '/OperationVideoMenu/OperationVideoMenu/list',
    method: 'get',
    params
  })
}

